import { defineStore } from 'pinia'

export const useDemoStore = defineStore({
  id: 'demo',
  state: () => ({
    storeCount: 0,
  }),
  actions: {
    increment() {
      this.storeCount++
    },
  },
  getters: {
    doubleStoreCount() {
      return this.storeCount * 2
    },
  },
})
